The program

The package contains the following files :

The program is invoked with the command :

   WP2LATEX [WP-filename.WPF]

The parameter WP-filename.WPF2 is optional. The program starts with an opening screen and asks for the WordPerfect filename. The default filename is printed inside square brackets ([ ]) and is the parameter which was optionally included in the initial invocation of WP2LATEX. The user can at this point type in another WordPerfect filename, or he can hit return to choose the default filename. The program next requests the name of the generated LATEX document. The default given within brackets is the name of the WordPerfect file, with the extension .TEX. Once again the user may accept this name or enter another3. Once the filenames are given, the following error messages may appear :

The conversion takes place in two passes. In the first pass the WordPerfect input-file is read in, byte by byte. On the basis of that are created two files, WP-filenaam.STR and WP_filenaam.TBL. WP-filenaam.STR contains the characters, tab settings and changes of typefaces; WP-filenaam.TBL holds information regarding the various LATEX environments that must be opened and closed. In the second pass these files are assimilated into a single LATEX file. After a successful conversion the files WP-filenaam.STR and WP-filenaam.TBL are automatically deleted.

Invoking to convert the WordPerfect 5.0 document C:\WPTEST\TEST.WP5 will cause the following screen to appear :

     Conversionprogram : From Wordperfect 5.0 to LaTeX  (WP2LATEX)

  (c) TUE-Eindhoven ---- Made by R.C.Houtepen ---- Date : 24 Jan 1990


WordPerfect-filename [ ] :  c:\wptest\test.wp5
LaTeX-filename [c:\wptest\test.TEX] :

Converting ...

First strike :
Converting-percentage : 100%

Second strike :
Converting-percentage : 100%

Conversion completed.

The first line of the generated LATEX file, in the case of the file C:\WPTEST\TEST.TEX, will look as follows :

   \documentstyle[11pt,wp2latex]{report}

When calling LATEX to typeset the converted document, the style file WP2LATEX.STY should be in the current directory or in the style-file directory (e.g., \PCTEX\TEXINPUT). This style file defines a number of macros and environments which are regularly used in the generated LATEX files. Examples include the command \nwln and the indenting environment. \nwln generates a hard carriage return after the end of a LATEX-environment. The indenting environment is used in the conversion of WordPerfect's [Indent] command (see § [*]).